# 多重继承示例
class Flyable:
    def fly(self):
        return f"{self.__class__.__name__} 正在飞行"

class Swimmable:
    def swim(self):
        return f"{self.__class__.__name__} 正在游动"
class Duck(Flyable, Swimmable):
    def __init__(self,name):
        self.name = name

    def intro(self):
        return f"我是一只{self.name}, 我即会飞翔, 也会游动"

# 调用示例

duck = Duck("唐老鸭")
print(duck.intro())
print(duck.fly())
print(duck.swim())

# 查看方法解析顺序
print(Duck.__mro__)
